﻿je_manifest_destiny_qingqiu = {
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:qingqiuan
	}

	possible = {
		OR = {
			has_law = law_type:law_colonial_exploitation
			has_law = law_type:law_colonial_resettlement
		}
	}

	complete = {
		owns_entire_state_region = STATE_YICHENG
		owns_entire_state_region = STATE_HAIKOU
		owns_entire_state_region = STATE_LAOFENG
		owns_entire_state_region = STATE_YULIN
		owns_entire_state_region = STATE_BAIZEHU
	}

	on_complete = {
		trigger_event = { id = dvg_manifest_destiny.1 }
	}

	on_monthly_pulse = {
		random_events = {
			10 = 0
			1 = manifest_destiny.3
			5 = dvg_manifest_destiny.11
			5 = dvg_manifest_destiny.12
			5 = dvg_manifest_destiny.13
			5 = dvg_manifest_destiny.14
		}
	}

	weight = 100
	should_be_pinned_by_default = yes
}

je_manifest_destiny_plantagenia = {
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:plantagenian
	}

	possible = {
		OR = {
			has_law = law_type:law_colonial_exploitation
			has_law = law_type:law_colonial_resettlement
		}
	}

	complete = {
		owns_entire_state_region = STATE_MESSIPPI_SUPERIEURE
		owns_entire_state_region = STATE_NOUVEAU_LANCASTRE
		owns_entire_state_region = STATE_TERRES_CAU
		owns_entire_state_region = STATE_TERRES_ROUGES
		owns_entire_state_region = STATE_TERRES_MAHA
	}
	
	on_complete = {
		trigger_event = { id = dvg_manifest_destiny.2 }
	}

	on_monthly_pulse = {
		random_events = {
			10 = 0
			1 = manifest_destiny.3
			5 = dvg_manifest_destiny.21
			5 = dvg_manifest_destiny.22
			5 = dvg_manifest_destiny.23
		}
	}
	
	weight = 100
	
	inheritable = no
	should_be_pinned_by_default = yes
}

je_manifest_destiny_vinland = {
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	is_shown_when_inactive = {
		country_has_primary_culture = cu:vinlander
	}

	possible = {
		OR = {
			has_law = law_type:law_colonial_exploitation
			has_law = law_type:law_colonial_resettlement
		}
	}

	complete = {
		owns_entire_state_region = STATE_TJORNIN
		owns_entire_state_region = STATE_GYLHENVIK
		owns_entire_state_region = STATE_ODENSMARK
	}
	
	on_complete = {
		trigger_event = { id = dvg_manifest_destiny.3 }
	}

	on_monthly_pulse = {
		random_events = {
			10 = 0
			1 = manifest_destiny.3
			5 = dvg_manifest_destiny.31
			5 = dvg_manifest_destiny.32
		}
	}
	
	weight = 100
	
	inheritable = no
	should_be_pinned_by_default = yes
}

je_manifest_destiny_rohnnst = {
	icon = "gfx/interface/icons/event_icons/event_map.dds"

	is_shown_when_inactive = {
		OR = {
			AND = {
				country_has_primary_culture = cu:qingqiuan
				has_global_variable = manifested_destiny_qingqiu_complete
			}
			AND = {
				country_has_primary_culture = cu:vinlander
				has_global_variable = manifested_destiny_vinland_complete
			}
		}
		NOT = {
			any_state = {
				state_region = s:STATE_ROHNNST
				is_homeland_of_country_cultures = root
			}
		}
	}
	
	complete = {
		owns_entire_state_region = STATE_ROHNNST
	}
	
	on_complete = {
		trigger_event = { id = dvg_manifest_destiny.4 }
	}
	
	weight = 100
	
	inheritable = no
	should_be_pinned_by_default = yes
}